package com.tangbao.vuedata.mapper;

import com.tangbao.vuedata.model.OneNews;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 创建人:zhouxin
 * 创建时间:2017/12/6
 * 功能:菜单
 */
@Repository
public interface OneNewsMapper {


    /**
     * 分页查询全部一级菜单
     * @param start
     * @param pageSize
     * @return
     */
    List<OneNews> getOneNewsByAll(@Param("start") Integer start, @Param("pageSize") Integer pageSize);
    List<Object> getlunbolist(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    OneNews getOneNewsById(@Param("id") Integer id);

    /**
     * 新增一级菜单
     * @param oneNews
     * @return
     */
    int saveOneNews(@Param("oneNews") OneNews oneNews);

    /**
     * 编辑一级菜单
     * @param oneNews
     * @return
     */
    int updateOneNews(@Param("oneNews") OneNews oneNews);


}
